package app.fugema.shop.main.evaluate.model;

import com.base.common.utils.UIUtils;

import app.fugema.shop.BuildConfig;

public class UserAnswerBean
{

    /**
     * Id : 4
     * UserId : 694
     * QuestionsId : 6
     * Acontent : 412312312asdasd
     * AddTime : 2021-08-03 11:54:36
     * Nick : canxi
     * Photo : null
     */
    private int Id;
    private int UserId;
    private int QuestionsId;
    private String Acontent;
    private String AddTime;
    private String Nick;
    private String Photo;

    private String ProductName;
    private String ImagePath;


    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }

    public int getUserId() {
        return UserId;
    }

    public void setUserId(int UserId) {
        this.UserId = UserId;
    }

    public int getQuestionsId() {
        return QuestionsId;
    }

    public void setQuestionsId(int QuestionsId) {
        this.QuestionsId = QuestionsId;
    }

    public String getAcontent() {
        return Acontent;
    }

    public void setAcontent(String Acontent) {
        this.Acontent = Acontent;
    }

    public String getAddTime() {
        return AddTime;
    }

    public void setAddTime(String AddTime) {
        this.AddTime = AddTime;
    }

    public String getNick() {
        return Nick;
    }

    public void setNick(String Nick) {
        this.Nick = Nick;
    }

    public String getPhoto() {
        return Photo;
    }

    public String getPhotoUrl()
    {
        if(UIUtils.isNotEmpty(Photo)&&Photo.contains("http"))
        {
            return Photo;
        }
        else
        {
            return  BuildConfig.API_HOST + Photo;
        }
    }

    public void setPhoto(String Photo)
    {
        this.Photo = Photo;
    }

    public String getProductName()
    {
        return ProductName;
    }

    public void setProductName(String productName)
    {
        ProductName = productName;
    }

    public String getImagePath()
    {
        return ImagePath;
    }

    public String getImagePathUrl()
    {
        if(UIUtils.isNotEmpty(ImagePath)&&ImagePath.contains("http"))
        {
            return ImagePath;
        }
        else
        {
            return  BuildConfig.API_HOST + ImagePath;
        }
    }

    public void setImagePath(String imagePath)
    {
        ImagePath = imagePath;
    }
}
